package main

import "fmt"

func main() {
	const elemenCount = 100
	srcData := make([]int, elemenCount)
	for i := 0; i < elemenCount; i++ {
		srcData[i] = i
	}
	refData := srcData
	copyData := make([]int, elemenCount)
	copy(copyData, srcData)
	srcData[0] = 999
	fmt.Println(refData[0])
	fmt.Println(copyData[0], copyData[elemenCount-1])
	copy(copyData, srcData[4:6])
	for i := 0; i < 5; i++ {
		fmt.Printf("%d\n", copyData[i])
	}
}
